package com.bird.设计模式.结构型.代理模式;

import com.bird.设计模式.结构型.代理模式.静态代理.OrderServiceStaticProxy;

/**
 * @data 2022/3/16 16:07
 * @author: bird
 * @description: 调试 静态代理 动态的分配数据源
 */
public class Test {

    public static void main(String[] args) {
        Order order = new Order();
        order.setUserId(2);
        //静态代理
        OrderServiceStaticProxy orderServiceStaticProxy = new OrderServiceStaticProxy();
        orderServiceStaticProxy.saveOrder(order);

    }
}
